package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;
import java.util.Arrays;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;

import java.sql.Blob;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng
 * @since 2021-01-17
 */
@TableName("sys_filemeta")
public class Filemeta extends Model<Filemeta> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	private String fileName;
	private long fileSize;
	private String fileType;
	private String fileUrl;
	private Date createTime = new Date();
	private String remark;
	private byte[] bytes;
	private Integer userId;
	private String temporaryFileUrl;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public long getFileSize() {
		return fileSize;
	}

	public void setFileSize(long fileSize) {
		this.fileSize = fileSize;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public String getFileUrl() {
		return fileUrl;
	}

	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public byte[] getBytes() {
		return bytes;
	}

	public void setBytes(byte[] bytes) {
		this.bytes = bytes;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public String getTemporaryFileUrl() {
		return temporaryFileUrl;
	}

	public void setTemporaryFileUrl(String temporaryFileUrl) {
		this.temporaryFileUrl = temporaryFileUrl;
	}

	@Override
	public String toString() {
		return "Filemeta [id=" + id + ", fileName=" + fileName + ", fileSize="
				+ fileSize + ", fileType=" + fileType + ", fileUrl=" + fileUrl
				+ ", createTime=" + createTime + ", remark=" + remark
				+ ", bytes=" + Arrays.toString(bytes) + ", userId=" + userId
				+ ", temporaryFileUrl=" + temporaryFileUrl + "]";
	}
	
}
